define(['durandal/system'], function(system) {
	return {
		activate: function(activationData) {
			//activationData by compose binding 
			//like route value by router
			system.log('mod1 is activate');
			//return promise;
		},
		binding: function(child, parent, settings) {
			//children is self's view ,parent is self's parent settings is binding context
			//执行ko.applyBinding()之前
			system.log('mod1 is binding');
			//return false;等同于 return { applyBindings:false };
		},
		bindingComplete: function(view) {
			//执行ko.applyBinding()之后
			system.log('mod1 is bindingComplete');
		},
		attached: function(child, parent, settings) {
			//附加dom到parent's node 之后立马执行
			system.log('mod1 is attached');
		},
		compositionComplete: function(child, parent, settings) {
			//在所有子父级都组合完成后，从子级到父级逐级调用此回调方法
			system.log('mod1 is compositionComplete');
		},
		detached: function(view, parent) {
			system.log('mod1 is detached');
		}
	}
})